package com.jy.api.dao;

import com.jy.api.domain.ProductSupplyTime;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by lihu on 2017/12/27.
 */
public interface ProductSupplyTimeDao extends CrudRepository<ProductSupplyTime, String> {


    /**
     * 获取店铺所有时段
     *
     * @param storeId
     * @param enabled
     * @return
     */
    List<ProductSupplyTime> findByStoreIdAndEnabled(String storeId, boolean enabled);
}
